package com.rockxin.cat.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * <b>类名称：    RechargeBean             <br/>
 * <b>类描述：                        <br/>
 * <b>创建人：    Lans               <br/>
 * <b>创建时间：  2018/3/13 17:39     <br/>
 * <b>修改人：                        <br/>
 * <b>修改时间：                      <br/>
 * <b>修改备注：                      <br/>
 *
 * @version 1.0.0 <br/>
 */
public class RechargeBean implements Parcelable {

    /**
     * status : 1
     * orderid : 3204
     * payinfo : {"partner_no":"0001000F0358674","uid":"12293","money":1000,"idno":"410225199203018207","bank_card":"6217002870070828688","real_name":"赵怜烟"}
     * notify_url : http://47.104.131.40/frontend/web/?r=api/default/notify_recharge
     * fuyoudata : {"partner":"0001000F0358674","key":"d8n0dh23w2yzrnez52ocqb4ckzp7t0fs"}
     * fee : 0
     * info : 添加成功
     */

    private int status;
    private String orderid;
    private PayinfoBean payinfo;
    private String notify_url;
    private FuyoudataBean fuyoudata;
    private int fee;
    private String info;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    public PayinfoBean getPayinfo() {
        return payinfo;
    }

    public void setPayinfo(PayinfoBean payinfo) {
        this.payinfo = payinfo;
    }

    public String getNotify_url() {
        return notify_url;
    }

    public void setNotify_url(String notify_url) {
        this.notify_url = notify_url;
    }

    public FuyoudataBean getFuyoudata() {
        return fuyoudata;
    }

    public void setFuyoudata(FuyoudataBean fuyoudata) {
        this.fuyoudata = fuyoudata;
    }

    public int getFee() {
        return fee;
    }

    public void setFee(int fee) {
        this.fee = fee;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public static class PayinfoBean implements Parcelable {
        /**
         * partner_no : 0001000F0358674
         * uid : 12293
         * money : 1000
         * idno : 410225199203018207
         * bank_card : 6217002870070828688
         * real_name : 赵怜烟
         */


        private String partner_no;
        private String uid;
        private int money;
        private String idno;
        private String bank_card;
        private String real_name;

        public String getPartner_no() {
            return partner_no;
        }

        public void setPartner_no(String partner_no) {
            this.partner_no = partner_no;
        }

        public String getUid() {
            return uid;
        }

        public void setUid(String uid) {
            this.uid = uid;
        }

        public int getMoney() {
            return money;
        }

        public void setMoney(int money) {
            this.money = money;
        }

        public String getIdno() {
            return idno;
        }

        public void setIdno(String idno) {
            this.idno = idno;
        }

        public String getBank_card() {
            return bank_card;
        }

        public void setBank_card(String bank_card) {
            this.bank_card = bank_card;
        }

        public String getReal_name() {
            return real_name;
        }

        public void setReal_name(String real_name) {
            this.real_name = real_name;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.partner_no);
            dest.writeString(this.uid);
            dest.writeInt(this.money);
            dest.writeString(this.idno);
            dest.writeString(this.bank_card);
            dest.writeString(this.real_name);
        }

        public PayinfoBean() {
        }

        protected PayinfoBean(Parcel in) {
            this.partner_no = in.readString();
            this.uid = in.readString();
            this.money = in.readInt();
            this.idno = in.readString();
            this.bank_card = in.readString();
            this.real_name = in.readString();
        }

        public static final Creator<PayinfoBean> CREATOR = new Creator<PayinfoBean>() {
            @Override
            public PayinfoBean createFromParcel(Parcel source) {
                return new PayinfoBean(source);
            }

            @Override
            public PayinfoBean[] newArray(int size) {
                return new PayinfoBean[size];
            }
        };
    }

    public static class FuyoudataBean implements Parcelable {
        /**
         * partner : 0001000F0358674
         * key : d8n0dh23w2yzrnez52ocqb4ckzp7t0fs
         */


        private String partner;
        private String key;

        public String getPartner() {
            return partner;
        }

        public void setPartner(String partner) {
            this.partner = partner;
        }

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.partner);
            dest.writeString(this.key);
        }

        public FuyoudataBean() {
        }

        protected FuyoudataBean(Parcel in) {
            this.partner = in.readString();
            this.key = in.readString();
        }

        public static final Creator<FuyoudataBean> CREATOR = new Creator<FuyoudataBean>() {
            @Override
            public FuyoudataBean createFromParcel(Parcel source) {
                return new FuyoudataBean(source);
            }

            @Override
            public FuyoudataBean[] newArray(int size) {
                return new FuyoudataBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.status);
        dest.writeString(this.orderid);
        dest.writeParcelable(this.payinfo, flags);
        dest.writeString(this.notify_url);
        dest.writeParcelable(this.fuyoudata, flags);
        dest.writeInt(this.fee);
        dest.writeString(this.info);
    }

    public RechargeBean() {
    }

    protected RechargeBean(Parcel in) {
        this.status = in.readInt();
        this.orderid = in.readString();
        this.payinfo = in.readParcelable(PayinfoBean.class.getClassLoader());
        this.notify_url = in.readString();
        this.fuyoudata = in.readParcelable(FuyoudataBean.class.getClassLoader());
        this.fee = in.readInt();
        this.info = in.readString();
    }

    public static final Creator<RechargeBean> CREATOR = new Creator<RechargeBean>() {
        @Override
        public RechargeBean createFromParcel(Parcel source) {
            return new RechargeBean(source);
        }

        @Override
        public RechargeBean[] newArray(int size) {
            return new RechargeBean[size];
        }
    };
}
